﻿@using Classified.Web.Models
@model Classified.Domain.Entities.ClassifiedComment
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="green-title">
    Leave your comment</div>
<div class="thumbnail white-bg pad12">
    @using (Html.BeginForm("CreateComment", "ClassifiedAds", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        <fieldset>
            @Html.HiddenFor(model => model.ClassifiedId)
            <div class="clearfix">
                @Html.LabelFor(model => model.Name)
                <div class="input long">
                    @Html.EditorFor(model => model.Name)
                    @Html.ValidationMessageFor(model => model.Name)
                </div>
            </div>
            <div class="clearfix">
                @Html.LabelFor(model => model.Email)
                <div class="input long">
                    @Html.EditorFor(model => model.Email)
                    @Html.ValidationMessageFor(model => model.Email)
                </div>
            </div>
            <div class="clearfix">
                @Html.LabelFor(model => model.Comment)
                <div class="input long">
                    @Html.EditorFor(model => model.Comment)
                    @Html.ValidationMessageFor(model => model.Comment)
                </div>
            </div>
                   @Html.Partial("_Captcha", new Captcha())
            @Html.Partial("_InvisibleCaptcha", new InvisibleCaptcha())
            <div class="form-actions">
                <input type="submit" class="btn btn-large" value="Post Comment" />
            </div>
        </fieldset>
    }
</div>
